import request from '@/utils/request'

// 查询政府监管文件列表
export function listGovernment(query) {
  return request({
    url: '/app/government/list',
    method: 'get',
    params: query
  })
}

// 查询政府监管文件详细
export function getGovernment(drawId) {
  return request({
    url: '/app/government/' + drawId,
    method: 'get'
  })
}

// 新增政府监管文件
export function addGovernment(data) {
  return request({  
    url: '/app/government',
    method: 'post',
    data: data
  })
}

// 修改政府监管文件
export function updateGovernment(data) {
  return request({
    url: '/app/government',
    method: 'put',
    data: data
  })
}

// 删除政府监管文件
export function delGovernment(drawId) {
  return request({
    url: '/app/government/' + drawId,
    method: 'delete'
  })
}
